package practice1.object;

import java.util.Arrays;

public class Split {
    public static void main(String[] args) {
        String s = "54ds1d6SDAS544564s56ad35";
        String[] data = s.split("[0-9]+");
        System.out.println(Arrays.toString(data));
        s = "123.456.789.10";
        data = s.split("\\.");
        System.out.println(Arrays.toString(data));

        s = ".123.321..456789.....";
        data = s.split("\\.");
        System.out.println(Arrays.toString(data));
        System.out.println(data.length);
    }
}
